/**
 * Copyright 2011 Poltman.Ltd; www.poltman.com. All rights reserved.		
 *
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */

package com.poltman.dscentral.db.entity.dspace;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @author z.ciok@poltman.com
 */
@Entity
@Table(name="community2community")
public class Community2CommunityEntity  implements Serializable {

	private static final long serialVersionUID = -1932771717687985100L;

	public Community2CommunityEntity() { }
	
    @Id
    @SequenceGenerator(name="epersongroup2eperson_seq", sequenceName="epersongroup2eperson_seq")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="epersongroup2eperson_seq") 
    @Column(name="id")
    private Integer id;
 
    @Column(name="parent_comm_id")
    private Integer parentCommId;
    
    @Column(name="child_comm_id")
    private Integer childCommId;

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentCommId() {
		return parentCommId;
	}
	public void setParentCommId(Integer parentCommId) {
		this.parentCommId = parentCommId;
	}
	
	public Integer getChildCommId() {
		return childCommId;
	}
	public void setChildCommId(Integer childCommId) {
		this.childCommId = childCommId;
	}
}
